import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import {RouterModule} from '@angular/router'
import { HttpModule } from '@angular/http';
import {UserService} from './user.service'
import { AppComponent } from './app.component';
import {UserListComponent} from './user-list.component';
import {DashbordComponent} from './dashboard.component'
@NgModule({
  declarations: [
    AppComponent,UserListComponent,
    DashbordComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    RouterModule.forRoot([
      {path:"user-list",component:UserListComponent}
      ,{path:"dashboard",component:DashbordComponent}
     ])
  ],
  providers: [UserService ],
  bootstrap: [AppComponent]
})
export class AppModule { }




